from .equation import Equation


class AddEquation(Equation):
    def __init__(self):
        self.generateEquation("+")

    def calculate(self) -> int:
        return self.left + self.right

    def isEquals(self, equation: Equation) -> int:
        if self.op == equation.op:
            if (self.left == equation.left and self.right == equation.right) or (self.left == equation.right and self.right == equation.left):
                return True
            else:
                return False
        else:
            return False
